import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    publicKey: '',
    user: '',
    token: '',
    password: '',
    rsaUser: '',
    rsaPassword: ''
  },
  mutations: {
    gztPublicKey (state, step) {
      state.publicKey = step
    },
    gztUserInfo (state, step) {
      state.user = step.user,
      state.password = step.password,
      state.token = step.toeken,
      state.rsaUser = step.rsaUser,
      state.rsaPassword = step.rsaPassword
    }
  },
  actions: {
  },
  modules: {
  }
})
